import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import store from './store/store';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<App />);
//store上面的方法 第三方状态变化直接渲染
store.subscribe(()=>{
  root.render( < App / > );
  })

